<template>
  <div>
    <h1>新闻内容是: {{content}}</h1>
    <h1>从父组件传递过来的值: {{userName}}</h1>
  </div>
</template>

<script>
export default {
  name: "News",
  props:['content','userName']
}
</script>

<style scoped>

</style>